home *** CD-ROM | disk | FTP | other *** search
- /* OberonLink - Linkt Oberon-Programme */
-
- parse arg filename opts .
-
- options results
- 'getval $screenname'
- screenname = result
-
- call close 'STDERR'
- call open 'STDERR','NIL:','W'
- call close 'STDIN'
- call close 'STDOUT'
- call open 'STDOUT','CON:0/0/640/256/RexxCon/SCREEN'||screenname,'RW'
- call pragma '*','STDOUT'
-
- l = lastpos('.mod',filename)
- if l ~= (length(filename)-3) then do
- 'title (No Oberon source!)'
- exit 20
- end
- linkname = left(filename,l)
-
- open('file','env:OProject','R')
- project = readln('file')
- close('file')
-
- IF open('file','env:'||project||'.OLopt','R') THEN DO
- opts = readln('file')
- close('file')
- END;
-
- address command 'OLink' opts linkname
-
- if rc ~=0 then
- delay(100)
-
- close('STDOUT')
- exit
-
-